package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    Double sunByMap(Map map);

    Integer getCountByDateAndStatus(@Param("date") LocalDate date, @Param("status") Integer status);

    List<GoodsSalesDTO> getSaleTop10(LocalDate begin, LocalDate end);

}
